<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Carbon;
use App\Models\VehicleSeries;

class VehicleSeriesSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $now = Carbon::now();
        $rows = [
            [
                'series_name' => '东风多利卡',
                'order' => 1,
                'created_at'  => $now,
                'updated_at'  => $now,
            ],
            [
                'sign'        => '东风凯普特',
                'order' => 2,
                'created_at'  => $now,
                'updated_at'  => $now,
            ],
            [
                'sign'        => '东风途逸',
                'order' => 3,
                'created_at'  => $now,
                'updated_at'  => $now,
            ],
            [
                'sign'        => '东风小霸王',
                'order' => 4,
                'created_at'  => $now,
                'updated_at'  => $now,
            ],
            [
                'sign'        => '东风福瑞卡',
                'order' => 5,
                'created_at'  => $now,
                'updated_at'  => $now,
            ],
            [
                'sign'        => '东风御风',
                'order' => 6,
                'created_at'  => $now,
                'updated_at'  => $now,
            ],
        ];

        VehicleSeries::insert($rows);
        print("插入完成 \n");
    }
}
